projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac395f0
)
dm: i2c: dts: Add an I2C bus for sandbox
author
Simon Glass
<
[email protected]
>
Wed, 10 Dec 2014 15:55:53 +0000
(08:55 -0700)
committer
Simon Glass
<
[email protected]
>
Thu, 11 Dec 2014 20:18:43 +0000
(13:18 -0700)
Add an I2C bus to the device tree, with an EEPROM emulator attached to one
of the addresses.
Signed-off-by: Simon Glass <
[email protected]
>
Acked-by: Heiko Schocher <
[email protected]
>
Reviewed-by: Masahiro Yamada <
[email protected]
>
arch/sandbox/dts/sandbox.dts
patch
|
blob
|
history
diff --git
a/arch/sandbox/dts/sandbox.dts
b/arch/sandbox/dts/sandbox.dts
index 76147154c22366b7f70e5a95e83c8ea8ee3dfbe1..11748aec7990e1ff40f9d625842a154d8d278cc1 100644
(file)
--- a/
arch/sandbox/dts/sandbox.dts
+++ b/
arch/sandbox/dts/sandbox.dts
@@
-134,6
+134,23
@@
num-gpios = <20>;
};
+ i2c@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+ compatible = "sandbox,i2c";
+ clock-frequency = <400000>;
+ eeprom@2c {
+ reg = <0x2c>;
+ compatible = "i2c-eeprom";
+ emul {
+ compatible = "sandbox,i2c-eeprom";
+ sandbox,filename = "i2c.bin";
+ sandbox,size = <128>;
+ };
+ };
+ };
+
spi@0 {
#address-cells = <1>;
#size-cells = <0>;